import { httpInstance } from '@/utils/request'

interface FetchCaseDetailAPIResData {
  code: number
  data: Case
  msg: string
  time: string
}

export function fetchCaseDetailAPI(caseId: string) {
  return httpInstance.get<FetchCaseDetailAPIResData>(
    'api/Case_project/caseInfo',
    { params: { id: caseId } },
  )
}
